home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / TNM61M (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.3 KB  |  27 lines

  1. package com.sun.java.swing.text;
  2.  
  3. final class StringContent$StickyPosition implements Position {
  4.    // $FF: synthetic field
  5.    StringContent this$0;
  6.    StringContent.PosRec rec;
  7.  
  8.    // $FF: synthetic method
  9.    StringContent$StickyPosition(StringContent this$0, int offset) {
  10.       this.this$0 = this$0;
  11.       this.rec = new StringContent.PosRec(this$0, offset);
  12.       this$0.marks.addElement(this.rec);
  13.    }
  14.  
  15.    public int getOffset() {
  16.       return this.rec.offset;
  17.    }
  18.  
  19.    protected void finalize() throws Throwable {
  20.       this.rec.unused = true;
  21.    }
  22.  
  23.    public String toString() {
  24.       return Integer.toString(this.getOffset());
  25.    }
  26. }
  27.